make a puzzle with javascript